<?php

namespace app\admin\model;


class Material extends Base
{


    // 表名
    protected $name = 'bd_material';



    public function cate()
    {
        return $this->belongsTo('Materialcate', 'fk_bdl_bdgroup');
    }

    public function inv()
    {
        return $this->hasMany("Inventory",'fk_bdl_bd_material','fnumber');
    }



}
